package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author Admin
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "commun_member")
@ApiModel(value = "CommunMember对象",description = "聊天群组表")
public class CommunMember {

    @TableId("id")
    @ApiModelProperty("id")
    private String id;

    @TableField("number_id")
    @ApiModelProperty("评论用户id")
    private String numberId;

    @TableField("number_name")
    @ApiModelProperty("评论用户昵称")
    private String numberName;

    @TableField("room_id")
    @ApiModelProperty("直播间id")
    private String roomId;

    @TableField("is_muted")
    @ApiModelProperty("是否禁言 默认0 1禁言 0非禁言")
    private Integer isMuted;

    @TableField("is_online")
    @ApiModelProperty("是否在线 默认1 1在线 0不在线")
    private Integer isOnline;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

}
